﻿<?php
require_once("config.php");
require_once _SRC_."/domain/Category.php";
require_once(_SRC_."/dao/CategoryDao.php");


?>
<html>
<head>
<title>亚科中心</title>
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
<title>Style 16 (Deep Sky Blue) - Menu by Apycom.com</title>
<link type="text/css" href="static/css/menu.css" rel="stylesheet" />
<link type="text/css" href="static/css/style.css" rel="stylesheet" />

<script type="text/javascript" src="static/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="static/js/menu.js"></script>
<script type="text/javascript" src="static/js/slides.jquery.js"></script>
<script type="text/javascript" src="coin-slider.js"></script>
<link type="text/css" href="coin-slider-styles.css" rel="stylesheet" />
<link rel="stylesheet" href="static/js/jqueryui/jquery-ui.css" />
<script src="static/js/jqueryui/jquery-ui.js"></script>
<!-- Start WOWSlider.com HEAD section -->
<link rel="stylesheet" type="text/css" href="static/js/wowslider/style.css" />
<!-- End WOWSlider.com HEAD section -->

</head>
<script>
function showPopup(url){
	$("#dialog").find("iframe").attr("src",url);
	$("#dialog").dialog({
		stack: true,
		width:900,
		height:700,
		show: "clip" 
	});
}
</script>

<body>
	<center>
		<div class="nav">
			<div id="menu">
				<ul class="menu">
					<li style="line-height: 80px; padding-right: 20px;"><img src="static/image/logo.png"></a>
					<?php
					$categoryDao = new CategoryDao();
					$categories = $categoryDao->getCategories(0,1);
					
					foreach ($categories as $category){
						echo '<li><a href="dynamic.php?pageId='.$category->pageId.'"><span>'.$category->name.'</span></a></li>';
						$subCategories = $categoryDao->getCategories($category->id,2);

						foreach ($subCategories as $subCategory){
							echo '<div><ul>';
									echo '<li><a href="javascript:void(0)" onclick="javascript:showPopup(\"qwjz.html?lay=qwfx\")"><span>区位分析</span></a></li>';
							echo '</ul></div>';
						}

					}
					?>
				</ul>
			</div>
		</div>
		<hr />
